package com.definity.toolkit.security;

import java.io.Serializable;


public interface SecurityContext<U extends UserDomain<? extends Serializable>> {

	Class<U> getUserType();
	
	U getCurrentUser();
	
	void changePassword(String actual, String newPassword) throws SecurityException;
	
	void login(String user, String password) throws SecurityException;
	
	boolean hasPermission(String roleName);

}
